package com.sangeng.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.sangeng.domain.ResponseResult;
import com.sangeng.domain.entity.Menu;
import com.sangeng.domain.vo.MenuVo;

import java.util.List;


/**
 * 菜单权限表(Menu)表服务接口
 *
 * @author makejava
 * @since 2022-08-19 19:41:12
 */
public interface MenuService extends IService<Menu> {

    List<String> selectPermsByUserId(long id);

    List<MenuVo> selectRouterMenuTreeByUserId(Long userId);
    
    ResponseResult<List<MenuVo>> getAllMenuList();

    ResponseResult<String> addMenu(Menu menuDto);

    ResponseResult<MenuVo> getMenuById(Long id);

    ResponseResult<String> updateMenu(Menu menuDto);

    ResponseResult<String> deleteMenuById(List<Long> idList);

    ResponseResult<List<MenuVo>> getMenuList(String menuName, String status);
}

